package com.graduationproject.examonline.student.mapper;

import com.graduationproject.examonline.student.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

// 使用注解Mapper实例化接口
@Mapper
@Repository
public interface StudentMapper {
    public List<Student> findStudentByIdAndPassword(Map<String, Object> params);

    public List<Student> findStudentById(String stuId);

    public int insertStudent(Map<String, Object> params);

    public int editStudentById(Map<String, Object> params);

    public List<Student> findStudentByClassId(String class_id);

    public List<Student> findAllStudent();
}
